package com.yida.gwj.expend.outside.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yida.common.core.constant.SecurityConstants;
import com.yida.common.core.domain.R;
import com.yida.gwj.api.service.RemoteGwjFinanceService;
import com.yida.gwj.expend.outside.service.GwjExpendOutsideBasicDataService;

/**
 * @author hmh
 * @date 2023/07/10
 */
@Service
public class GwjExpendOutsideBasicDataServiceImpl implements GwjExpendOutsideBasicDataService {

    @Autowired
    private RemoteGwjFinanceService remoteGwjFinanceService;

    @Override
    public Map<Long, String> selectRemoteFinanceBankList(Long areaId) {
        Map<Long, String> map = new HashMap<Long, String>();
        R<Map<Long, String>> result = remoteGwjFinanceService.selectFinanceBankMapInner(areaId, SecurityConstants.INNER);
        if (R.isSuccess(result)) {
            map.putAll(result.getData());
        }
        return map;
    }

}
